package com.ruoyi.basedata.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basedata.mapper.TerminalsFreezeXbViewMapper;
import com.ruoyi.basedata.domain.TerminalsFreezeXbView;
import com.ruoyi.basedata.service.ITerminalsFreezeXbViewService;

/**
 * 小表日用量和抄表率视图Service业务层处理
 *
 * @author gdqt
 * @date 2024-03-18
 */
@Service
public class TerminalsFreezeXbViewServiceImpl implements ITerminalsFreezeXbViewService {
    @Autowired
    private TerminalsFreezeXbViewMapper terminalsFreezeXbViewMapper;

    /**
     * 查询小表日用量和抄表率视图
     *
     * @param tenantId 小表日用量和抄表率视图主键
     * @return 小表日用量和抄表率视图
     */
    @Override
    public TerminalsFreezeXbView selectTerminalsFreezeXbViewByTenantId(String tenantId) {
        return terminalsFreezeXbViewMapper.selectTerminalsFreezeXbViewByTenantId(tenantId);
    }

    /**
     * 查询小表日用量和抄表率视图列表
     *
     * @param terminalsFreezeXbView 小表日用量和抄表率视图
     * @return 小表日用量和抄表率视图
     */
    @Override
    public List<TerminalsFreezeXbView> selectTerminalsFreezeXbViewList(TerminalsFreezeXbView terminalsFreezeXbView) {
        return terminalsFreezeXbViewMapper.selectTerminalsFreezeXbViewList(terminalsFreezeXbView);
    }

    /**
     * 新增小表日用量和抄表率视图
     *
     * @param terminalsFreezeXbView 小表日用量和抄表率视图
     * @return 结果
     */
    @Override
    public int insertTerminalsFreezeXbView(TerminalsFreezeXbView terminalsFreezeXbView) {
        return terminalsFreezeXbViewMapper.insertTerminalsFreezeXbView(terminalsFreezeXbView);
    }

    /**
     * 修改小表日用量和抄表率视图
     *
     * @param terminalsFreezeXbView 小表日用量和抄表率视图
     * @return 结果
     */
    @Override
    public int updateTerminalsFreezeXbView(TerminalsFreezeXbView terminalsFreezeXbView) {
        return terminalsFreezeXbViewMapper.updateTerminalsFreezeXbView(terminalsFreezeXbView);
    }

    /**
     * 批量删除小表日用量和抄表率视图
     *
     * @param tenantIds 需要删除的小表日用量和抄表率视图主键
     * @return 结果
     */
    @Override
    public int deleteTerminalsFreezeXbViewByTenantIds(String[] tenantIds) {
        return terminalsFreezeXbViewMapper.deleteTerminalsFreezeXbViewByTenantIds(tenantIds);
    }

    /**
     * 删除小表日用量和抄表率视图信息
     *
     * @param tenantId 小表日用量和抄表率视图主键
     * @return 结果
     */
    @Override
    public int deleteTerminalsFreezeXbViewByTenantId(String tenantId) {
        return terminalsFreezeXbViewMapper.deleteTerminalsFreezeXbViewByTenantId(tenantId);
    }
}
